<template>
  <div class="">
    <div>
      <p class="fan router-link-active">
        <i class="van-icon van-icon-arrow-left" @click="adds"></i>
      </p>
    </div>
    <div id="sigin">
      <div>
        <p>您可用的积分为</p>
        <p>105</p>
      </div>
      <div class="qd">连续签到2天</div>
      <div>
        <p>签到</p>
        <div>
          <img src="../assets/image/11.png" alt="" />
          <div>
            <p>消费购物</p>
            <p>购物完成，确认收货后立返积分</p>
          </div>
          <p @click="$router.push('/Home')">去购物</p>
        </div>
        <div>
          <img src="../assets/image/12.png" alt="" />
          <div>
            <p>积分兑换</p>
            <p>积分兑好礼，20积分即可兑换礼券</p>
          </div>
          <p @click="$router.push('/liquan')">去兑换</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// import { getqian } from "@/utils/api/home.js";

export default {
  data() {
    return {};
  },
  mounted() {
    //   getqian().then((res) => {
    //   console.log(res);
    // //   this.list = res.data.data.goodsMap;
    // });
  },
  methods: {
    adds() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang='scss'>
body {
  font-size: 12px;
  color: #333;
}
.fan {
  font-size: 0.3rem;
  position: fixed;
  left: 0.1rem;
  top: 0.1rem;
}
.van-icon {
  position: relative;
  display: inline-block;
  font: normal normal normal 12px/1 vant-icon;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
#sigin > div:nth-of-type(1) > p:nth-of-type(1) {
  font-size: 0.3rem;
  color: #aeaeab;
  letter-spacing: 0.01rem;
}
#sigin > div:nth-of-type(1) > p:nth-of-type(2) {
  font-size: 0.5rem;
  font-weight: 700;
  color: #b3a078;
  padding-top: 1rem;
}
#sigin > div:nth-of-type(1) {
  width: 100%;
  height: 3.4rem;
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#f1ead8),
    to(#fefbf2)
  );
  text-align: center;
  padding-top: 1.4rem;
}
#sigin > div:nth-of-type(2) {
  width: 100%;
  height: 1.4rem;
  background: #e8e1cf;
}
.qd {
  text-align: center;
  line-height: 1.4rem;
  font-size: 0.35rem;
  color: white;
}

#sigin > div:nth-of-type(3) > p:nth-of-type(1) {
  font-size: 0.2rem;
  color: white;
  width: 3.2rem;
  height: 0.7rem;
  background: #b3a078;
  text-align: center;
  line-height: 0.7rem;
  border-radius: 0.3rem;
  margin: 0.3rem auto;
}
#sigin > div:nth-of-type(3) {
  width: 100%;
  height: 4.9rem;
  background: #ffffff;
}
#sigin > div:nth-of-type(3) > p:nth-of-type(1) {
  font-size: 0.2rem;
  color: white;
  width: 2.2rem;
  height: 0.48rem;
  background: #b3a078;
  text-align: center;
  line-height: 0.48rem;
  border-radius: 0.2rem;
  margin: 0.3rem auto;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(1) {
  width: 6.95rem;
  height: 1.7rem;
  border-radius: 0.06rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  // border-radius: 0.06rem;
  background: #f4ebe2;
  margin: 0 auto;
  margin-bottom: 0.25rem;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(1) > img {
  width: 1.4rem;
  height: 1.7rem;
  border-top-left-radius: 0.06rem;
  border-bottom-left-radius: 0.06rem;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(1) > div {
  width: 4.2rem;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(1) > div > p:nth-of-type(1) {
  font-size: 0.16rem;
  margin-top: 0.5rem;
  color: #e1b68c;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(1) > div > p:nth-of-type(2) {
  font-size: 0.16rem;
  margin-top: 0.27rem;
  color: #e1b68c;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(1) > p:nth-of-type(1) {
  width: 1rem;
  height: 0.52rem;
  border-radius: 0.06rem;
  text-align: center;
  line-height: 0.52rem;
  background: #e1b68c;
  color: white;
  margin-top: 0.59rem;
}

#sigin > div:nth-of-type(3) > div:nth-of-type(2) {
  width: 6.95rem;
  height: 1.7rem;
  border-radius: 0.06rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  // border-radius: 0.06rem;
  background: #f4ebe2;
  margin: 0 auto;
  margin-bottom: 0.25rem;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(2) > img {
  width: 1.4rem;
  height: 1.7rem;
  border-top-left-radius: 0.06rem;
  border-bottom-left-radius: 0.06rem;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(2) > div {
  width: 4.2rem;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(2) > div > p:nth-of-type(1) {
  font-size: 0.16rem;
  margin-top: 0.5rem;
  color: #e1b68c;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(2) > div > p:nth-of-type(2) {
  font-size: 0.16rem;
  margin-top: 0.27rem;
  color: #e1b68c;
}
#sigin > div:nth-of-type(3) > div:nth-of-type(2) > p:nth-of-type(1) {
  width: 1rem;
  height: 0.52rem;
  border-radius: 0.06rem;
  text-align: center;
  line-height: 0.52rem;
  background: #e1b68c;
  color: white;
  margin-top: 0.59rem;
}
</style>
